/*
* Vide - v0.1.4
* Easy as hell jQuery plugin for video backgrounds.
* http://vodkabears.github.io/vide/
*
* Made by Ilya Makarov
* Under MIT License
*/
!function(a,b,c,d){"use strict";function e(b,c,d){if(this.element=a(b),this._defaults=g,this._name=f,"string"==typeof c&&(c=j(c)),d?"string"==typeof d&&(d=j(d)):d={},"string"==typeof c)c=c.replace(/\.\w*$/,"");else if("object"==typeof c)for(var e in c)c.hasOwnProperty(e)&&(c[e]=c[e].replace(/\.\w*$/,""));this.settings=a.extend({},g,d),this.path=c,this.init()}var f="vide",g={volume:1,playbackRate:1,muted:!0,loop:!0,autoplay:!0,position:"50% 50%",posterType:"detect"},h=/iPad|iPhone|iPod/i.test(d.userAgent),i=/Android/i.test(d.userAgent);a[f]={lookup:[]};var j=function(a){var b,c={};b=a.replace(/\s*:\s*/g,":").replace(/\s*,\s*/g,",").split(",");var d,e,f,g,h,i;for(d=0,e=b.length;e>d&&(i=b[d],-1===i.search(/^(http|https|ftp):\/\//)&&-1!==i.search(":"));d++)h=i.indexOf(":"),f=i.substring(0,h),g=i.substring(h+1),g||(g=void 0),"string"==typeof g&&(g="true"===g||("false"===g?!1:g)),"string"==typeof g&&(g=isNaN(g)?g:+g),c[f]=g;return null==f&&null==g?a:c},k=function(a){a=""+a;for(var b,c=a.split(/\s+/),d="50%",e="50%",f=0,g=c.length;g>f;f++)b=c[f],"left"===b?d="0%":"right"===b?d="100%":"top"===b?e="0%":"bottom"===b?e="100%":"center"===b?0===f?d="50%":e="50%":0===f?d=b:e=b;return{x:d,y:e}},l=function(b,c){var d=function(){c(this.src)};a("").load(d),a("").load(d),a("").load(d),a("").load(d)};e.prototype.init=function(){var b=this;this.wrapper=a("